﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectSemIII.Administrator.UserControl
{
    public partial class MainMenu : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string pageName = Path.GetFileNameWithoutExtension(Page.AppRelativeVirtualPath);
            if (pageName.Contains("Account") == true)
            {
                Account.CssClass = "active";
            }
            else if (pageName.Contains("Survey"))
            {
                Survey.CssClass = "active";
            }
            else if (pageName.Contains("Support") || pageName.Contains("FAQ"))
            {
                SupportFAQ.CssClass = "active";
            }
        }
    }
}